import React from 'react'
import { Modal } from 'antd'

const AppDialog = (props) => {

  const handleCancel = () => {
    props.onClosed()
  }

  return (
    <>
    <Modal
      title={props.title}
      visible={props.visible}
      footer=""
      maskClosable={true}
      onCancel={handleCancel}
    >
      {props.children}
    </Modal>
    </>
  )
}

export default AppDialog
